/*
 * SQLNoticiaDAO.java
 *
 * Created on 31 de octubre de 2007, 16:26
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package webportlet.model.noticia.dao;

import java.sql.Connection;
import java.util.ArrayList;
import webportlet.model.noticia.dto.NoticiaDTO;
import webportlet.model.util.InstanceNotFoundException;
import webportlet.model.util.InternalErrorException;
import webportlet.model.util.*;

/**
 *
 * @author Administrador
 */
public interface SQLNoticiaDAO {
    
    /** Creates a new instance of SQLNoticiaDAO */
    
    public NoticiaDTO create(Connection connection, NoticiaDTO noticiaDTO) 
        throws DuplicateInstanceException, InternalErrorException;
    
    public boolean exits(Connection connection, Long id) 
        throws InternalErrorException;
    
    public NoticiaDTO find(Connection connection, Long id)
        throws InstanceNotFoundException, InternalErrorException;
    
    public void update(Connection connection, NoticiaDTO noticiaDTO) 
        throws InstanceNotFoundException, InternalErrorException;
    
    public void remove(Connection connection, Long id)
         throws InstanceNotFoundException, InternalErrorException;
    
     public ArrayList <NoticiaDTO> recuperarLista(Connection connection, 
            ArrayList <Long> listaIdentificadores)
            throws InstanceNotFoundException, InternalErrorException;
    
    
}
